package com.gentle.controller;

import com.gentle.service.ZookeeperLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Gentle
 * @date 2019/05/29 : 20:26
 */
@RestController
public class TestController {
    /**
     * Test Controller
     * 具体看 Test 类中测试
     */
    @Autowired
    ZookeeperLockService zookeeperLockService;
    @GetMapping(value = "/test")
    public Boolean sss() throws Exception {

        return zookeeperLockService.lockAcquireTimeOut();

    }


}
